#include <iostream>
#include "org/antban/ptr/ref.h"
#include "org/antban/ptr/ptr.h"

using namespace org::antban::ptr;


class Test : public Ref {
protected:
	~Test() {
		std::cout << "Deleting reference" << std::endl;
	}
};

int main(int argc, char* argv[]) {
	{
		std::cout << "Ref created" << std::endl;
		Ptr<Test> ref = new Test();
		ref = new Test();
		std::cout << "Ref created" << std::endl;
	}


	return 0;
}
